<?php
require_once("../data/db_connection.php");
require_once("../constants.php");
require_once("../Utils.php");

$db = new db();

$event_id = getFinalValue($_POST[PARAM_EVENT_ID]);
$event_state = getFinalValue($_POST[PARAM_EVENT_STATE]);
//$event_id = trim($_GET[PARAM_EVENT_ID]);
//$event_state = trim($_GET[PARAM_EVENT_STATE]);

$sql = "UPDATE pTableEventInfo SET pEventState = " . $event_state . " WHERE _id = " . $event_id;

$return_id = $db->update_get_id($sql, $event_id);

echo $return_id;
$db->close(); 
?>